<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Metodología de la Programación II: Referencia de la Clase Vector</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generado por Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;principal</span></a></li>
      <li class="current"><a href="classes.html"><span>Clases</span></a></li>
      <li><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="classes.html"><span>Lista&nbsp;alfabética</span></a></li>
      <li><a href="annotated.html"><span>Lista&nbsp;de&nbsp;clases</span></a></li>
      <li><a href="functions.html"><span>Miembros&nbsp;de&nbsp;las&nbsp;clases</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia de la Clase Vector</h1><!-- doxytag: class="Vector" -->Modulo que representa una vector de caracteres.  
<a href="#_details">Más...</a>
<p>
<code>#include &lt;<a class="el" href="Vector_8h-source.html">Vector.h</a>&gt;</code>
<p>

<p>
<a href="classVector-members.html">Lista de todos los miembros.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6f80c73b5f18dcf3f8e36065bdc8b9e5"></a><!-- doxytag: member="Vector::Vector" ref="6f80c73b5f18dcf3f8e36065bdc8b9e5" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#6f80c73b5f18dcf3f8e36065bdc8b9e5">Vector</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor por defecto  inicializa todo a cero. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#0400ebe778de707c81e56b247d99dcc0">Vector</a> (const <a class="el" href="classVector.html">Vector</a> &amp;orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor de copia.  <a href="#0400ebe778de707c81e56b247d99dcc0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2eb3c49587a4f12cade7895ccb73f6a0"></a><!-- doxytag: member="Vector::~Vector" ref="2eb3c49587a4f12cade7895ccb73f6a0" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#2eb3c49587a4f12cade7895ccb73f6a0">~Vector</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor  libera toda la memoria reservada. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#deaf48e17e3a6d86ac05f19df58b8b37">GetNelem</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#8d7b130e4e6b0677d5af24259b4a4bfc">GetCaracter</a> (int pos) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="abd6a5b1dcca7647dccc095bcef56001"></a><!-- doxytag: member="Vector::Leer" ref="abd6a5b1dcca7647dccc095bcef56001" args="(std::istream &amp;is)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#abd6a5b1dcca7647dccc095bcef56001">Leer</a> (std::istream &amp;is)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Lee desde la entrada estandar un texto hasta el '' (incluido). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5d078805eaf028cdf9f811de73181126"></a><!-- doxytag: member="Vector::Escribir" ref="5d078805eaf028cdf9f811de73181126" args="(std::ostream &amp;os)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#5d078805eaf028cdf9f811de73181126">Escribir</a> (std::ostream &amp;os)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Escribe en el flujo os un texto. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ca23f0d66cb20cbc6473d63fe97fef6"></a><!-- doxytag: member="Vector::AddCaracter" ref="0ca23f0d66cb20cbc6473d63fe97fef6" args="(char c)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#0ca23f0d66cb20cbc6473d63fe97fef6">AddCaracter</a> (char c)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Añade caracteres al vector. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#89ce466f6e4fcb01e64977bb469f7dee">GetParidad</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculo del crc32.  <a href="#89ce466f6e4fcb01e64977bb469f7dee"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Métodos privados</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classVector.html">Vector</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#f92aa1944a19a1eccf5ac0396409fe30">operator=</a> (const <a class="el" href="classVector.html">Vector</a> &amp;orig)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Operador de asignación.  <a href="#f92aa1944a19a1eccf5ac0396409fe30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classVector.html#ca8c1daf1e9dd1c929a98150d5bdfa5f">Resize</a> (int tam)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redimensiona el vector.  <a href="#ca8c1daf1e9dd1c929a98150d5bdfa5f"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Atributos privados</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="803b486477486ebfe054cc4415b9ded4"></a><!-- doxytag: member="Vector::cadena" ref="803b486477486ebfe054cc4415b9ded4" args="" -->
unsigned char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>cadena</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39c81dc21555ce54a2ad1fb6b80d125b"></a><!-- doxytag: member="Vector::nelem" ref="39c81dc21555ce54a2ad1fb6b80d125b" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>nelem</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e319aef15424c617f005da9cb1455eab"></a><!-- doxytag: member="Vector::reservados" ref="e319aef15424c617f005da9cb1455eab" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>reservados</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c692cc88b2b2eedbe00f7302483c1383"></a><!-- doxytag: member="Vector::crc" ref="c692cc88b2b2eedbe00f7302483c1383" args="" -->
<a class="el" href="classCRC.html">CRC</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>crc</b></td></tr>

</table>
<hr><a name="_details"></a><h2>Descripción detallada</h2>
Modulo que representa una vector de caracteres. 
<p>
<dl class="author" compact><dt><b>Autor:</b></dt><dd>Mary Carmen Suárez </dd></dl>

<p>Definición en la línea <a class="el" href="Vector_8h-source.html#l00019">19</a> del archivo <a class="el" href="Vector_8h-source.html">Vector.h</a>.</p>
<hr><h2>Documentación del constructor y destructor</h2>
<a class="anchor" name="0400ebe778de707c81e56b247d99dcc0"></a><!-- doxytag: member="Vector::Vector" ref="0400ebe778de707c81e56b247d99dcc0" args="(const Vector &amp;orig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector::Vector           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classVector.html">Vector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>orig</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor de copia. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>orig,tipo</em>&nbsp;</td><td>de dato que va a ser copiado </td></tr>
  </table>
</dl>

<p>Definición en la línea <a class="el" href="Vector_8cpp-source.html#l00021">21</a> del archivo <a class="el" href="Vector_8cpp-source.html">Vector.cpp</a>.</p>

<p>Hace referencia a <a class="el" href="Vector_8h-source.html#l00022">cadena</a>, <a class="el" href="Vector_8h-source.html#l00023">nelem</a>, y <a class="el" href="Vector_8h-source.html#l00023">reservados</a>.</p>

</div>
</div><p>
<hr><h2>Documentación de las funciones miembro</h2>
<a class="anchor" name="f92aa1944a19a1eccf5ac0396409fe30"></a><!-- doxytag: member="Vector::operator=" ref="f92aa1944a19a1eccf5ac0396409fe30" args="(const Vector &amp;orig)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classVector.html">Vector</a>&amp; Vector::operator=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classVector.html">Vector</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>orig</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Operador de asignación. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>orig,x=orig</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Devuelve:</b></dt><dd>devuelve x con los valores de orig </dd></dl>

</div>
</div><p>
<a class="anchor" name="ca8c1daf1e9dd1c929a98150d5bdfa5f"></a><!-- doxytag: member="Vector::Resize" ref="ca8c1daf1e9dd1c929a98150d5bdfa5f" args="(int tam)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Vector::Resize           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>tam</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Redimensiona el vector. 
<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>n,tamaño</em>&nbsp;</td><td>que queremos que redimensione </td></tr>
  </table>
</dl>

<p>Definición en la línea <a class="el" href="Vector_8cpp-source.html#l00079">79</a> del archivo <a class="el" href="Vector_8cpp-source.html">Vector.cpp</a>.</p>

<p>Referenciado por <a class="el" href="Vector_8cpp-source.html#l00069">AddCaracter()</a>.</p>

</div>
</div><p>
<a class="anchor" name="deaf48e17e3a6d86ac05f19df58b8b37"></a><!-- doxytag: member="Vector::GetNelem" ref="deaf48e17e3a6d86ac05f19df58b8b37" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Vector::GetNelem           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Devuelve:</b></dt><dd>Devuelve el número de elementos usados </dd></dl>

<p>Definición en la línea <a class="el" href="Vector_8cpp-source.html#l00045">45</a> del archivo <a class="el" href="Vector_8cpp-source.html">Vector.cpp</a>.</p>

<p>Referenciado por <a class="el" href="GunLZcoder_8cpp-source.html#l00083">GunLZcoder::DescodificarSimbolo()</a>, y <a class="el" href="GunLZcoder_8cpp-source.html#l00170">GunLZcoder::Nelem()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8d7b130e4e6b0677d5af24259b4a4bfc"></a><!-- doxytag: member="Vector::GetCaracter" ref="8d7b130e4e6b0677d5af24259b4a4bfc" args="(int pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned char Vector::GetCaracter           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pos,posicion</em>&nbsp;</td><td>del caracter que quieres consultar </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Devuelve:</b></dt><dd>Devuelve el caracter de la posición pos </dd></dl>

<p>Definición en la línea <a class="el" href="Vector_8cpp-source.html#l00050">50</a> del archivo <a class="el" href="Vector_8cpp-source.html">Vector.cpp</a>.</p>

<p>Referenciado por <a class="el" href="GunLZcoder_8cpp-source.html#l00083">GunLZcoder::DescodificarSimbolo()</a>.</p>

</div>
</div><p>
<a class="anchor" name="89ce466f6e4fcb01e64977bb469f7dee"></a><!-- doxytag: member="Vector::GetParidad" ref="89ce466f6e4fcb01e64977bb469f7dee" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Vector::GetParidad           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Calculo del crc32. 
<p>
<dl class="return" compact><dt><b>Devuelve:</b></dt><dd>Devulve el crc32 del vector </dd></dl>

<p>Definición en la línea <a class="el" href="Vector_8cpp-source.html#l00108">108</a> del archivo <a class="el" href="Vector_8cpp-source.html">Vector.cpp</a>.</p>

<p>Hace referencia a <a class="el" href="crc_8cpp-source.html#l00035">CRC::Paridad_Get()</a>.</p>

<p>Referenciado por <a class="el" href="GunLZcoder_8cpp-source.html#l00165">GunLZcoder::GetParidad()</a>.</p>

</div>
</div><p>
<hr>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
<li>include/<a class="el" href="Vector_8h-source.html">Vector.h</a><li>src/<a class="el" href="Vector_8cpp-source.html">Vector.cpp</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generado el Thu Jun 10 12:36:12 2010 para Metodología de la Programación II por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
